package com.tvunetworks.center.device.mapper;

import com.tvunetworks.center.device.model.PidPortMapping;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

/**
 * @author Etan Yang
 * @create: 2021/10/13 16:04
 */

public interface PidPortMappingMapper extends Mapper<PidPortMapping> {
    /**
     * 获取所有domain为空的设备
     * @return 返回素有domain为空的设备
     */
    List<PidPortMapping> listAllReceiverByDomainIsEmpty();

    /**
     * 根据peerId获取对象
     * @param peerId peerId
     * @return 对象
     */
    PidPortMapping getByPeerId(@Param("peerId") String peerId);

    /**
     *
     * @return int
     */
    int deletePidPortMapping();
}
